[PHP]: Why "\" gives error while storing it in string?

Posted by RPK on Stack Overflow See other posts from Stack Overflow or by RPK
Published on 2009-11-04T11:23:36Z Indexed on 2010/04/14 22:43 UTC
Read the original article Hit count: 216

Filed under:
|

My string looks like:

$fullPath = $dirName . "/" . $file;

If I replace / with \, it gives error: "Expecting identifier or variable". I want to store in the latter way itself. How to override anything coming in between?

© Stack Overflow or respective owner

Related posts about php

Related posts about php5